/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aal.business;

import com.aal.entity.Product;
import java.util.Collection;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author quy
 */
@Local
public interface ProductManagementLocal {

    boolean addProduct(int categoryId, String productName, double unitPrice, String description, double taxPercent, String productImage, int status,double shippingpricecost);
    boolean editProduct(String productName, int categoryId, double unitPrice, String description, double taxPercent, String productImage, int status,double shippingpricecost);
    List<Product> searchproductbyName(String productName);
    List<Product> listallproducts();
    Collection<Product> searchproductbyCategory(int categoryId);
    Product searchproductbyID (int id);
}
